using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class AddToQueueRequest : OrganizationRequest
	{
		public EntityReference Target
		{
			get
			{
				if (base.Parameters.Contains("Target"))
				{
					return (EntityReference)base.Parameters["Target"];
				}
				return null;
			}
			set
			{
				base.Parameters["Target"] = value;
			}
		}
		public Guid SourceQueueId
		{
			get
			{
				if (base.Parameters.Contains("SourceQueueId"))
				{
					return (Guid)base.Parameters["SourceQueueId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["SourceQueueId"] = value;
			}
		}
		public Guid DestinationQueueId
		{
			get
			{
				if (base.Parameters.Contains("DestinationQueueId"))
				{
					return (Guid)base.Parameters["DestinationQueueId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["DestinationQueueId"] = value;
			}
		}
		public Entity QueueItemProperties
		{
			get
			{
				if (base.Parameters.Contains("QueueItemProperties"))
				{
					return (Entity)base.Parameters["QueueItemProperties"];
				}
				return null;
			}
			set
			{
				base.Parameters["QueueItemProperties"] = value;
			}
		}
		public AddToQueueRequest()
		{
			base.RequestName = "AddToQueue";
			this.Target = null;
			this.DestinationQueueId = default(Guid);
		}
	}
}
